EnumTypeDef.h

Introduction

Use the links in the table of contents to the left to access the documentation.



Typedefs

Alignment
BarcodeHRIpos
BarcodeType
BleServiceStatus
BleWriteType
BlueToothKind
CPCLFontType
CutterMode
ECC_level
EncodingType
ESCFontType
FontStyle836
JumpMode
LableDirection
PageLengthType
PageUnit
PrintDirectionMode
PrinterCmdType
PrinterCodeError
PrinterPortType
PrintStautsCmd
RotateType
RowSpacingMode
TSCFontType
XSIMFontType
ZPLFontType

Alignment


typedef enum{  
    Align_NoSetting = -1,  
    Align_Left = 0,  
    Align_Center = 1,  
    Align_Right = 2,  
    Align_Full=3 
} Alignment;  
Constants
Align_NoSetting

Not set

Align_Left

Align left

Align_Center

Align Center

Align_Right

Align Right

Align_Full

Align Full

Discussion

Alignment mode


BarcodeHRIpos


typedef enum{ 
    BarcodeHRIpos_noprint=0, 
    BarcodeHRIpos_above=1, 
    BarcodeHRIpos_Below=2, 
    BarcodeHRIpos_both=3, 
}BarcodeHRIpos;  
Discussion

Bar code text display position for ESC - BarcodeHRIpos_noprint: not printer - BarcodeHRIpos_above: Above the bar code - BarcodeHRIpos_Below: Under the bar code - BarcodeHRIpos_both: Above and below the bar code


BarcodeType


typedef enum{ 
    BarcodeTypeUPC_A=0, // CPCL、ESC、TSC、ZPL、Xsim、Escp 
    BarcodeTypeUPC_E=1, // CPCL、ESC、TSC、ZPL、Xsim 
    BarcodeTypeEAN13=2, // CPCL、ESC、TSC、ZPL、Xsim、Escp 
    BarcodeTypeEAN8=3, // CPCL、ESC、TSC、ZPL、Xsim、Escp 
    BarcodeTypeCODE39=4, // CPCL、ESC、TSC、ZPL、Xsim 
    BarcodeTypeITF =5, // CPCL、ESC、TSC、Xsim 
    BarcodeTypeCODABAR=6, // CPCL、ESC、TSC、ZPL、Xsim、Escp 
    BarcodeTypeCODE128=7, // CPCL、ESC、TSC、ZPL、Xsim、Escp 
    BarcodeTypeQrcode=8, // CPCL、ESC、TSC、ZPL、Xsim、Escp 
    BarcodeTypeCODE93=9, // CPCL、ESC、TSC 
    BarcodeTypePDF417=10, // Xsim、Escp 
    BarcodeTypeAZTEC=11, // Escp 
    BarcodeTypeBC39N=12, // Escp 
    BarcodeTypeBC39W=13, // Escp 
    BarcodeTypeI2of5=14, // Escp 
    BarcodeTypeBCI25=15, // Escp 
    BarcodeTypeEN128=16, // Escp  
}BarcodeType;  
Discussion

- BarcodeTypeUPC_A: UPC_A - BarcodeTypeEAN13: EAN13 - BarcodeTypeEAN8: EAN8 - BarcodeTypeCODE39: CODE39 - BarcodeTypeITF: ITF - BarcodeTypeCODABAR: CODABAR - BarcodeTypeQrcode: Qrcode


BleServiceStatus


typedef enum {  
    BleScanComplete, 
    /* Scanning*/
    BleScanDevice, 
}BleServiceStatus;  
Fields
BleScanComplete

Stop scanning

Discussion

The current operating status of Bluetooth


BleWriteType


typedef enum{ 
    bleWriteWithResponse=0, 
    bleWriteWithoutResponse=1 
}BleWriteType;  
Discussion

Bluetooth write mode


BlueToothKind


typedef enum {  
    BlueToothKind_Ble = 0, 
} BlueToothKind;  
Constants
Discussion

Bluetooth kind


CPCLFontType


typedef enum{ 
    CPCLFontType_Font1 = 1, 
    CPCLFontType_Font2 = 2, 
    CPCLFontType_Font3 = 3, 
    CPCLFontType_Font4 = 4, 
    CPCLFontType_Font5 = 5, 
    CPCLFontType_Font6 = 6, 
    CPCLFontType_Font7 = 7, 
    CPCLFontType_Chinese_24x24 = 24, 
    CPCLFontType_Chinese_16x16_custom = 55,//16*16 
} CPCLFontType;  
Discussion

CPCL type


CutterMode


typedef enum{  
    CutterMode_None = 0,  
    CutterMode_half = 1,  
    CutterMode_Full = 2, 
} CutterMode;  
Constants
Discussion

Cutter mode


ECC_level


typedef enum{  
    ECC_level_L,  
    ECC_level_M,  
    ECC_level_Q,  
    ECC_level_H 
}ECC_level;  
Fields
ECC_level_L

%7

ECC_level_M

%15

ECC_level_Q

%25

ECC_level_H

30%

Discussion

Error correction level Two-dimensional code for TSC


EncodingType


typedef enum{ 
    Encoding_GBK = 0, 
    Encoding_UTF8 = 1 
}EncodingType;  
Discussion

encoding type - Encoding_GBK: GBK - Encoding_UTF8: UTF8


ESCFontType


typedef enum{  
    ESCFontType_FontA = 0,  
    ESCFontType_FontB = 1, 
} ESCFontType;  
Constants
ESCFontType_FontA

A Font(12*24)

ESCFontType_FontB

B Font(9*17)

Discussion

ESC font type


FontStyle836


typedef enum{  
    FontStyle836_Normal=0,  
    FontStyle836_Hollow=1,  
    FontStyle836_shadow=2,  
    FontStyle836_shadowAndHollow=3 
}FontStyle836;  
Constants
Discussion

Font style (For pin)


JumpMode


typedef enum {  
    JumpMode_Forward=0,  
    JumpMode_Reverse=1 
} JumpMode;  
Constants
JumpMode_Forward

Forward jump

JumpMode_Reverse

Reverse jump

Discussion

(for Pin) Jump mode


LableDirection


typedef enum{ 
    Direction_Forward=0, 
    Direction_Reverse=1, 
}LableDirection;  
Discussion

(for TSC,CPCL,zpl) Label printing direction


PageLengthType


typedef enum { 
    pglen_INCH_3=0, //3 inch 
    pglen_INCH_11_divided_by_3=1, //11/3 inch 
    pglen_INCH_3_5=2,//3.5 inch 
    pglen_INCH_4=3,//3 inch 
    pglen_INCH_5=4, 
    pglen_INCH_5_5=5,//5.5 
    pglen_INCH_6=6, 
    pglen_INCH_7=7, 
    pglen_INCH_11=8, 
    pglen_INCH_A4_11_6=9,//11.6 
    pglen_INCH_12=10,//10 
    pglen_INCH_14=11, 
}PageLengthType;  
Discussion

for pin Setting the page Length


PageUnit


typedef enum{ 
    PageUnit_Row=0, 
    PageUnit_inch=1 
}PageUnit;  
Discussion

(for Pin) Page length unit


PrintDirectionMode


typedef enum {  
    Print_double_sided = 0,  
    Print_single_sided = 1,  
    Print_Full_sided = 2 
} PrintDirectionMode;  
Constants
Print_double_sided

double sided printing characters

Print_single_sided

single sided

Print_Full_sided

Print_Full_sided (Including images)

Discussion

(for Pin) Print direction


PrinterCmdType


typedef enum { 
    PrinterCmdESC = 0, 
    PrinterCmdCPCL = 1, 
    PrinterCmdZPL = 2, 
    PrinterCmdXsim = 3, 
    PrinterCmdEscP = 4,   
    // PrinterCmdTSC = 5, 
    // PrinterCmdPIN = 6,  
}PrinterCmdType;  
Discussion

Instruction type


PrinterCodeError


typedef enum { 
    PrinterCodeOK = 0, 
    PrinterCodeTooLong = -1, 
    PrinterCodeFormatError = -2, 
    PrinterCodeUnknowType = -3, 
    PrinterCodeTooShort = -4,  
}PrinterCodeError;  
Discussion

Print the value returned by the bar code - PrinterCodeOK: The bar code is correct - PrinterCodeTooLong: Bar code is too long - PrinterCodeFormatError: Barcode format is wrong - PrinterCodeUnknowType: Unknown barcode type - PrinterCodeTooShort: Barcode is too short


PrinterPortType


typedef enum { 
    PrinterPortWifi=0, 
    PrinterPortBle=1, 
    PrinterPortMFI=2, 
}PrinterPortType;  
Discussion

Connection port type


PrintStautsCmd


typedef enum { 
    /* unknow */
    PrnStautsCmd_unknown = -1,   
    PrnStautsCmd_Normal = 0,  
    PrnStautsCmd_SN = 1,  
    PrnStautsCmd_Version = 2,  
    PrnStautsCmd_Model = 3,  
    PrnStautsCmd_Battery = 4,  
    PrnStautsCmd_BleMac = 5,    
    /* notice ,dont use 
        */
    PrnStautsCmd_PrintEnd = 99, 
    PrnStautsCmd_PrintFailed = 100  
}PrintStautsCmd;  
Constants
PrnStautsCmd_Normal

for Rpp806 TSC, for Rpp80 ESC Printer status, such as paper jam, out of paper, open cover, etc.

PrnStautsCmd_SN

SN

PrnStautsCmd_Version

version

PrnStautsCmd_Model

model

PrnStautsCmd_Battery

Battery

PrnStautsCmd_BleMac

bluetooth macaddress

Discussion

printer Stauts enquiry


RotateType


typedef enum{  
    Rotate0=0,  
    Rotate90=1,  
    Rotate180=2,  
    Rotate270=3, 
} RotateType;  
Constants
Rotate0

Do not rotate

Rotate90

Rotate 90 degrees

Rotate180

Rotate 180 degrees

Rotate270

Rotate 270 degrees

Discussion

Bar code clockwise rotation ESC Can only rotate 90 degrees


RowSpacingMode


typedef enum {  
    Row60th = 1,  
    Row180th = 2,  
    Row360th = 3,//  
    RowOneSixth = 4,  
    RowOneeighth = 5, 
} RowSpacingMode;  
Constants
Row60th

Set n/60 line spacing

Row180th

Set n/180 line spacing

Row360th

Set n/360 line spacing

RowOneSixth

Set 1/6 line spacing

RowOneeighth

Set 1/8 line spacing

Discussion

(for Pin) Row spacing mode


TSCFontType


typedef enum{  
    TSCFontType_Font1 = 1,  
    TSCFontType_Font2 = 2,  
    TSCFontType_Font3 = 3,  
    TSCFontType_Font4 = 4,  
    TSCFontType_Font5 = 5,  
    TSCFontType_Font6 = 6,  
    TSCFontType_Font7 = 7,  
    TSCFontType_Font8 = 8,  
    TSCFontType_TST24 = 9,  
    TSCFontType_TSS24 = 10,  
    TSCFontType_K=11,  
    TSCFontType_TSS16 = 12, 
} TSCFontType;  
Constants
TSCFontType_Font1

8x12 fixed pitch dot font

TSCFontType_Font2

12X20 fixed pitch dot font

TSCFontType_Font3

16X24 fixed pitch dot font

TSCFontType_Font4

24X32 fixed pitch dot font

TSCFontType_Font5

32X48 fixed pitch dot font

TSCFontType_Font6

14X19 OCR-B fixed pitch dot font

TSCFontType_Font7

14x25 OCR-A fixed pitch dot font

TSCFontType_Font8

21X27 OCR-B fixed pitch dot font

TSCFontType_TST24

24x24 TST24.BF2 Traditional Chinese 24 x 24 font

TSCFontType_TSS24

24x24 TSS24.BF2 Simplified Chinese 24 x 24 font (GB)

TSCFontType_K

24x24 K Korean 24 x 24 font (KS)

TSCFontType_TSS16

16*16 TSS16.BF2

Discussion

TSC type


XSIMFontType


typedef enum { 
    XsimFontType_Font0 = 0, 
    XsimFontType_Font1 = 1, 
    XsimFontType_Font2 = 2, 
    XsimFontType_Font3 = 3, 
    XsimFontType_Font4 = 4, 
    XsimFontType_Font5 = 5, 
    XsimFontType_Font6 = 6, 
    XsimFontType_Font7 = 7, 
    XsimFontType_Font8 = 8, 
    XsimFontType_Font9 = 9, 
    XsimFontType_Font10 = 10, 
    XsimFontType_Font11 = 11, 
    XsimFontType_Font12 = 12, 
    XsimFontType_Font13 = 13, 
    XsimFontType_Font14 = 14, 
    XsimFontType_Font15 = 15, 
} XSIMFontType;  
Discussion

xsim type


ZPLFontType


typedef enum { 
    ZplFontType_Vector = 0,// Vector font 
    ZplFontType_Font1 = 1, 
    ZplFontType_Font2 = 2, 
    ZplFontType_Font3 = 3, 
    ZplFontType_Font4 = 4, 
    ZplFontType_Font5 = 5, 
    ZplFontType_Font6 = 6, 
    ZplFontType_Font7 = 7, 
    ZplFontType_Font8 = 8, 
    ZplFontType_Font9 = 9, 
    ZplFontType_FontA = 10, //A 
    ZplFontType_FontB = 11, //B 
    ZplFontType_FontC = 12, //C 
    ZplFontType_FontD = 13, //D 
    ZplFontType_FontE = 14, //E 
    ZplFontType_FontF = 15, //F 
    ZplFontType_FontG = 16, //G 
} ZPLFontType;  
Discussion

ZPL type


Structs and Unions

Coordinate

Coordinate


struct Coordinate { 
    NSInteger x; 
    NSInteger y;  
    NSInteger width; 
    NSInteger height; 
};  
Fields
width

TSC Qrcode width=1~10

Discussion

coordinate


Globals

Set_DisEnable
Set_Enabled
Set_Enabled

Set_DisEnable


Set_NoSetting = -1,  Set_DisEnable = 0,  Set_Enabled = 1 
} SettingMode;  
Discussion

Not set


Set_Enabled


Set_NoSetting = -1,  Set_DisEnable = 0,  Set_Enabled = 1 
} SettingMode;  
Discussion

Enabled


Set_Enabled


Set_NoSetting = -1,  Set_DisEnable = 0,  Set_Enabled = 1 
} SettingMode;  
Discussion

Not set